package com.nthink.indicators.mapper.operationindex;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nthink.indicators.pojo.operationindex.dip.AvgDayTop10diagnosis;
import com.nthink.indicators.pojo.operationindex.dip.DipData;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 *
 */
@Mapper
public interface DipMapper extends BaseMapper<DipData> {


    /**
     * 病种平均住院日(排名前10病种)
     *
     * @param startTime
     * @param endTime
     * @return
     */
    public List<AvgDayTop10diagnosis> getAvgDayTop10diagnosis(Date startTime, Date endTime);


    /**
     * 住院时间超过30天出院人数
     *
     * @param startTime
     * @param endTime
     * @return
     */
    public int getDischargeCountOver30Day(Date startTime, Date endTime);

}
